package ua.ck.example.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import ua.ck.example.dao.EmployeeDAO;
import ua.ck.example.domain.Employee;

@Service("employeeService")
public class EmployeeServiceImpl implements EmployeeService {
	@Autowired
	private EmployeeDAO employeeDAO;

	@Transactional
	@Override
	public void addEmployee(Employee employee) {
		employeeDAO.addEmployee(employee);

	}

	@Transactional
	@Override
	public Employee getEmployee(Employee employee) {
		// TODO Auto-generated method stub
		return employeeDAO.getEmployee(employee);
	}

}
